package hbec.kettle.etl.common.constants;

public abstract class Constants {
	// 应用主路径
	//public static final String APP_LOCATION = System.getProperty("user.dir");
	public static final String APP_LOCATION = Constants.class.getResource("/").getPath();
	// 引擎配置文件路径
	public static final String ENGINECONF = "conf/engine.properties";
	// dbcp连接池配置文件路径
	public static final String DBCPCONF = "conf/dbcp.properties";
	// 作业和转换相关配置路径
	public static final String JOBSXML = APP_LOCATION + "conf/jobs.xml";
	public static final String JOBDIR = APP_LOCATION + "conf/job/";
	public static final String TRANSDIR = APP_LOCATION + "conf/trans/";
	public static final String FIELDSDIR = APP_LOCATION + "conf/fields/";
	// 数据库连接相关配置
	public static final String DATABASENAME = "hbec.kettle.etl.{0}.db";
	public static final String USERNAME = "hbec.kettle.etl.{0}.username";
	public static final String PASSWORD = "hbec.kettle.etl.{0}.password";
	public static final String HOST = "hbec.kettle.etl.{0}.host";
	public static final String PORT = "hbec.kettle.etl.{0}.port";
	public static final String TYPE = "hbec.kettle.etl.{0}.type";
	// JDBC数据库连接参数(mysql)
	public final static String JDBC_PARAMETERS = "?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true";
	// 数据库驱动方言
	public static final String SQLSERVER_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
	public static final String MYSQL_DRIVER = "com.mysql.jdbc.Driver";
	public static final String ORACLE_DRIVER = "oracle.jdbc.OracleDriver";
	public static final String SQLITE_DRIVER = "org.sqlite.JDBC";
	// dbcp连接池相关配置
	public static final String INITIALSIZE = "hbec.kettle.etl.{0}.initialsize";
	public static final String MINIDLE = "hbec.kettle.etl.{0}.minidle";
	public static final String MAXIDLE = "hbec.kettle.etl.{0}.maxidle";
	public static final String MAXACTIVE = "hbec.kettle.etl.{0}.maxactive";
	public static final String MAXWAIT = "hbec.kettle.etl.{0}.maxwait";
}
